var WxParse = require('../../wxParse/wxParse.js');
const app = getApp();
Page({
  data:{
    list:null,
  },
  onLoad:function(options){
    // console.log(options)
    var _this = this;
    wx.request({
      url: app.globalData.apiUrl+'/api/article/articleInfo',
      data: {id:options.id},
      method: 'GET',
      dataType: 'json',
      success: function (res) {
        //富文本
        WxParse.wxParse('content', 'html', res.data.content, _this, 0);
      },
      fail: function (res) { },
      complete: function (res) { },
    })
  },
  onReady:function (){
    console.log(22)
  }
})